﻿using ATS.Core;
using ATS.UI;
using Prism.Navigation.Regions;

namespace ATS.Plugins.Template.ViewModels;

[RegionMemberLifetime(KeepAlive = false)]
public class OptionsViewModel : OptionsViewModelBase
{
    public OptionsViewModel()
    {
        Permission = Permissions.Default.MenuPluginsSetting;
    }

    protected override void OnCreatingModel(OptionsFormModel model)
    {
        Model.Groups.Add(new OptionsFormGroup
        {
            Title = "示例",
            Fields =
            {
                new OptionsFormField(SettingConfiguration.TemplateValue),
            }
        });
    }
}